package br.nuticao.nutriapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

public class MenuCentral extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu_central);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.menu_central, menu);
		return true;
	}

	public void alimentossaudaveis(View view){
		Intent alimentosS = new Intent(this, AlimentosSaudaveis.class);   // carrega a Intent intent da classe ( this ) com o valor da activity que ira acionar  
		startActivity(alimentosS);                                        // chama a activity mandando a intent 
	}
	
	public void dicasparavivermelhor(View view){
		Intent alimentosS = new Intent(this, DicasParaViverMelhor.class);    // carrega a Intent intent da classe ( this ) com o valor da activity que ira acionar  
		startActivity(alimentosS);                                           // chama a activity mandando a intent 
	}
	public void receitassaudaveis(View view){
		Intent receitas = new Intent(this, ReceitasSaudaveis.class);        // carrega a Intent intent da classe ( this ) com o valor da activity que ira acionar  
		startActivity(receitas);                                             // chama a activity mandando a intent 
	}
	public void calculeseuimc(View view){
		Intent imc = new Intent(this, CalculeSeuIMC.class);                  // carrega a Intent intent da classe ( this ) com o valor da activity que ira acionar         
		startActivity(imc);                                                  // chama a activity mandando a intent 
	}
	
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle action bar item clicks here. The action bar will
		// automatically handle clicks on the Home/Up button, so long
		// as you specify a parent activity in AndroidManifest.xml.
		int id = item.getItemId();
		if (id == R.id.action_settings) {
			return true;
		}
		return super.onOptionsItemSelected(item);
	}
}
